#ifndef Debug_H
#define Debug_H
#include "Parameter.h"

              

#ifdef DEBUG_GLOBAL
#define DEBUG_EXT
#else
#define DEBUG_EXT extern
#endif

/*typedef struct temp_store{
           INT16U real_low;
		   INT16U real_high;
		   INT16U sample_low;
		   INT16U sample_high;
		   }TEMP_STORE;

DEBUG_EXT TEMP_STORE Temp_store[8];	*/

typedef struct debug_data{
           INT16S X1;
		   INT16S X2;
		   INT16U Y1;
		   INT16U Y2;
		   }DEBUG_DATA;
	
DEBUG_EXT DEBUG_DATA Debug_Data[8];		 

typedef struct default_data{
           INT16S X1;
		   INT16S X2;
		   INT16U Y1;
		   INT16U Y2;
		   }DEFAULT_DATA;
		   
DEBUG_EXT DEFAULT_DATA DefaultData;

DEBUG_EXT INT16S Calculate_temper(INT16S X1,INT16U Y1,INT16S X2,INT16U Y2,INT16U Y);
//DEBUG_EXT INT16U CalcuSampleLow(INT16U X1,INT16U Y1,INT16U X2,INT16U Y2);
//DEBUG_EXT INT16U CalcuSampleHigh(INT16U X1,INT16U Y1,INT16U X2,INT16U Y2);
DEBUG_EXT void Load_adjust_data(void);
DEBUG_EXT void Write_adjust_data(INT8U item);
#endif
